/**
 * @author nttdocomo
 */
(function() {
	$LAB.script("/js/sea.js", "/js/jquery.js", "/js/underscore.js").wait().script("/js/backbone.js", "/js/aries.js").wait(function() {
		seajs.config({
			alias : {
				'jquery' : 'jquery',
				'backbone' : 'backbone',
				'underscore' : 'underscore',
				'aries' : 'aries'
			},
			base : 'http://ui.example.com/js/',
			charset : 'utf-8'
		});
		var $body = $("#main");
		seajs.use("../../js/form/field/radio.js", function() {
			new aries.form.field.Radio({
				renderTo : $body,
				checked : true,
				fieldLabel : 'Favorite Color',
				boxLabel : 'Red',
				name : 'fav-color',
				inputValue : 'red'
			});
			new aries.form.field.Radio({
				renderTo : $body,
                boxLabel: 'Blue',
                name: 'fav-color',
                inputValue: 'blue'
			});
		})
	})
})()